Drop gtk_drag_set_icon_pixbuf
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 Oct 2017 03:43:05 +0000 (05:43 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Oct 2017 03:58:54 +0000 (05:58 +0200)
We are moving away from GdkPixbuf in the api.
Use surface-based replacements instead.

gtk/gtkdnd.c
gtk/gtkdnd.h

index 0bb71f7336881c7bb0c065de4d86025e1c4de9ed..15c307bae21312f2dabb8e769c1f262c1e44b63c 100644 (file)
@@ -1623,33 +1623,6 @@ gtk_drag_set_icon_definition (GdkDragContext     *context,
   set_icon_helper (context, def, hot_x, hot_y);
 }
 
-/**
- * gtk_drag_set_icon_pixbuf: (method)
- * @context: the context for a drag (This must be called 
- *            with a  context for the source side of a drag)
- * @pixbuf: the #GdkPixbuf to use as the drag icon
- * @hot_x: the X offset within @widget of the hotspot
- * @hot_y: the Y offset within @widget of the hotspot
- * 
- * Sets @pixbuf as the icon for a given drag.
- */
-void 
-gtk_drag_set_icon_pixbuf (GdkDragContext *context,
-                          GdkPixbuf      *pixbuf,
-                          gint            hot_x,
-                          gint            hot_y)
-{
-  GtkImageDefinition *def;
-
-  g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-  g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-
-  def = gtk_image_definition_new_pixbuf (pixbuf, 1);
-  set_icon_helper (context, def, hot_x, hot_y);
-
-  gtk_image_definition_unref (def);
-}
-
 /**
  * gtk_drag_set_icon_surface: (method)
  * @context: the context for a drag (This must be called
index afd3edade81d80eb6a61740200a42ccbefebbb0a..53fb73a93dccc2fa9528e51f9d4cb47a3a6c0b69 100644 (file)
@@ -78,11 +78,6 @@ void gtk_drag_set_icon_widget (GdkDragContext *context,
                               gint            hot_x,
                               gint            hot_y);
 GDK_AVAILABLE_IN_ALL
-void gtk_drag_set_icon_pixbuf (GdkDragContext *context,
-                              GdkPixbuf      *pixbuf,
-                              gint            hot_x,
-                              gint            hot_y);
-GDK_AVAILABLE_IN_ALL
 void gtk_drag_set_icon_surface(GdkDragContext *context,
                               cairo_surface_t *surface);
 GDK_AVAILABLE_IN_ALL